package windows;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import coordinators.Cordinator;


public class ManageRecipe extends JFrame 
{
	Cordinator cordinator;
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private ManageRecipeCreate gestionarRecetaCrear;
	private ManageRecipeModify gestionarRecetaModificar;
	private ManageRecipeDelete gestionarRecetaEliminar;
	private ManageRecipeShow gestionarRecetaMostrar;

	private JTabbedPane paneles;

	

	public ManageRecipe(WindowPrincipal superior)
	{
		super();
		setLayout(null);
		setSize(500,600);

		paneles=new JTabbedPane();

		paneles.setBounds(0,0,getWidth(),getHeight());

		gestionarRecetaCrear=new ManageRecipeCreate();
		gestionarRecetaCrear.setBounds(0,0,getWidth(),getHeight());
		gestionarRecetaCrear.setPreferredSize(gestionarRecetaCrear.getSize());

		gestionarRecetaModificar =new ManageRecipeModify();
		gestionarRecetaModificar .setBounds(0,0,getWidth(),getHeight());

		gestionarRecetaEliminar=new ManageRecipeDelete();
		gestionarRecetaEliminar.setBounds(0,0,getWidth(),getHeight());

		gestionarRecetaMostrar=new ManageRecipeShow();
		gestionarRecetaMostrar.setBounds(0,0,getWidth(),getHeight());

		paneles.addTab("Crear Receta",gestionarRecetaCrear);
		paneles.addTab("Modificar Receta", gestionarRecetaModificar);
		paneles.addTab("Eliminar Receta", gestionarRecetaEliminar);
		paneles.addTab("Mostrar Recetas", gestionarRecetaMostrar);

		getContentPane().add(paneles);
		setTitle("Gestionar Receta");
		setLocation(250, 100);

	
	
	}

	public void setCoordinador(Cordinator c)
	{
		cordinator = c;

	}


}
